package com.ysd.lis.controller.sta;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.entity.sta.StaStainingConclusion;
import com.ysd.lis.request.Params;
import com.ysd.lis.service.sta.StaStainingConclusionService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wanghuaixing
 * @since 2024-04-08
 */
@RestController
@RequestMapping("/sta/staining/conclusion")
public class StaStainingConclusionController extends BaseController {

    @Autowired
    StaStainingConclusionService bacStainingConclusionService;

    @ApiOperation("查询")
    @GetMapping("/findStainingConclusionList")
    public Result findStainingConclusionList(Params params) {
        return bacStainingConclusionService.findStainingConclusionList(params);
    }

    @ApiOperation("批量修改")
    @PostMapping("/batchSaveStainingConclusion")
    public Result batchSaveStainingConclusion(@RequestBody List<StaStainingConclusion> conclusionList) {
        return bacStainingConclusionService.batchSaveStainingConclusion(conclusionList);
    }

    @ApiOperation("批量删除")
    @PostMapping("/batchDeleteStainingConclusion")
    public Result batchDeleteStainingConclusion(@RequestBody List<StaStainingConclusion> conclusionList) {
        return bacStainingConclusionService.batchDeleteStainingConclusion(conclusionList);
    }
}
